package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */

/**
 * 会员操作记录表      多了个时间  操作时间  消费时间 冲突 可减少一个
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("nember")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mem_id", type = IdType.AUTO)
    private Integer memId;

    /**
     * 会员卡号
     */
    private String memCardNumber;

    /**
     * 充值金额
     */
    private Double memRecharge;

    /**
     * 充值时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date memRechargeTime;

    /**
     * 剩余金额
     */
    private Double memBalance;

    /**
     * 消费金额
     */
    private Double memConsumption;

    /**
     * 消费时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date memConsumptionTime;

    /**
     * 操作员
     */
    private Integer clerkId;

    private Integer userId;

    //优惠力度
    private float memDiscount;
    //用户名称
    private String userName;

    private Users users;

    private Clerk clerk;




}
